//
//  DDLocate.h
//  DDMates
//
//  Created by ShawnMa on 12/27/11.
//  Copyright (c) 2011 TelenavSoftware, Inc. All rights reserved.
//

@interface TSLocation : NSObject

@property (nonatomic, copy) NSString *province;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *town;
@property (nonatomic, copy) NSString *village;


@property (nonatomic, strong) NSArray *localLocationArray;
@property (nonatomic, strong) NSArray *provinces;
@property (nonatomic, strong) NSArray *cities;
@property (nonatomic, strong) NSArray *towns;
@property (nonatomic, strong) NSArray *villages;

/** 第一级选中的下标 */
@property (nonatomic, assign) NSInteger selectFirstRow;
/** 第二级选中的下标 */
@property (nonatomic, assign) NSInteger selectSecondRow;
/** 第三级选中的下标 */
@property (nonatomic, assign) NSInteger selectThirdRow;
/** 第四级选中的下标 */
@property (nonatomic, assign) NSInteger selectForthRow;



+ (TSLocation *)sharedInstance;
- (NSArray *)getArrayByComponent:(NSInteger)component;
- (void)refreshLocateInfo;
- (void)clearData;
- (BOOL)hasData;
@end
